#include "graphicsview.h"
#include "graphicsrectitem.h"
#include <QGraphicsScene>

GraphicsView::GraphicsView()
{
    QGraphicsScene *scene = new QGraphicsScene(-100, -100, 200, 200);
    setScene(scene);
    setRenderHint(QPainter::Antialiasing);

    GraphicsRectItem *item = new GraphicsRectItem;
    item->setRect(-40, -30, 80, 60);

    scene->addItem(item);
}
